package com.applet.setmealdish.service.impl;

import com.applet.setmealdish.mapper.SetMealDishMapper;
import com.applet.setmealdish.service.SetMealDishService;
import com.applet.vo.DishItemVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 套餐菜品关联 serviceImpl
 */
@Slf4j
@Service
public class SetMealDishServiceImpl implements SetMealDishService {


    @Resource
    private SetMealDishMapper setMealDishMapper;




    /**
     * 根据套餐id 查询套餐关联的菜品集合
     * @param setmealId
     */
    @Override
    public List<DishItemVO> dishInSetMeal(Long setmealId) {
        return setMealDishMapper.dishInSetMeal(setmealId);
    }

}
